<?php /* Smarty version Smarty-3.1.6, created on 2018-05-22 19:19:20
         compiled from "E:/WWW/wysx/website/Home/View\Book\order_submit.html" */ ?>
<?php /*%%SmartyHeaderCode:14225b03fcb8bc53d0-87859106%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'abf60c972ca2d14528226262385c0723317e9ab3' => 
    array (
      0 => 'E:/WWW/wysx/website/Home/View\\Book\\order_submit.html',
      1 => 1526753623,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14225b03fcb8bc53d0-87859106',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'address' => 0,
    'info' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5b03fcb8cfd2d',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5b03fcb8cfd2d')) {function content_5b03fcb8cfd2d($_smarty_tpl) {?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="flexible" content="initial-dpr=2" />
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
	<link rel="stylesheet" type="text/css" href="<?php echo @CSS_URL;?>
public1.0.2.css"/>
	<link rel="stylesheet" type="text/css" href="<?php echo @CSS_URL;?>
order.css">
	<script type="text/javascript" src="<?php echo @JS_URL;?>
common/jquery-3.3.1.min.js"></script>
	<script type="text/javascript" src="<?php echo @JS_URL;?>
flexible.js"></script>
	<title>订单提交</title>
</head>
<body class="order_submit_body">

	<form method="post" action="<?php echo @__SELF__;?>
">
	<header class="order_submit_header">
		<div class="order_submit_headerbg"></div>
		<div class="order_submit_header_section center">
			<a href="<?php echo @__CONTROLLER__;?>
/select_address">
				<div class="order_submit_header_section_top">
					<p class="order_submit_header_local">
						<span class="order_submit_header_local1"><?php echo $_smarty_tpl->tpl_vars['address']->value['address_school'];?>
</span>&emsp;&emsp;
						<span class="order_submit_header_local2"><?php echo $_smarty_tpl->tpl_vars['address']->value['address_detail'];?>
</span>
					</p>
					<img src="<?php echo @IMG_URL;?>
/order_submit/Rightarrow@2x.png" class="order_submit_header_section_icon1">
					<p class="order_submit_header_message">
						<span class="order_submit_header_message1"><?php echo $_smarty_tpl->tpl_vars['address']->value['address_user_name'];?>
</span>&emsp;&emsp;
						<span class="order_submit_header_message2">
						<?php if ($_smarty_tpl->tpl_vars['address']->value['address_user_sex']==1){?>男<?php }else{ ?>女<?php }?>同学</span>
						<span class="order_submit_header_message3"><?php echo $_smarty_tpl->tpl_vars['address']->value['address_tel'];?>
</span>
					</p>
				</div>
			</a>
			<a href="#">
				<div class="order_submit_header_section_bottom">
					<p class="order_submit_header_time">
						<span class="order_submit_header_time1">预约使用时间</span>&emsp;&emsp;
						<span class="order_submit_header_time2">（13:50前送达）</span>
					</p>
					<img src="<?php echo @IMG_URL;?>
/order_submit/Rightarrow@2x.png" class="order_submit_header_section_icon2">
				</div>
			</a>	
		</div>
	</header>
	<aside class="order_submit_nav">
		<div class="order_submit_nav_top">
			<div><img src="<?php echo @IMG_URL;?>
/order_submit/store@2x.png"></div>
			<span><?php echo $_smarty_tpl->tpl_vars['info']->value['skill_title'];?>
</span>
		</div>
		<div class="order_submit_nav_mid">
			<div><img src="<?php echo @SITE_URL;?>
<?php echo @SKILL_IMG_URL;?>
<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_img_name_small0'];?>
"></div>
			<span><?php echo $_smarty_tpl->tpl_vars['info']->value['skill_describe'];?>
</span>
		</div>
		<div class="order_submit_nav_bottom">
			订单号：<?php echo $_smarty_tpl->tpl_vars['info']->value['order_number'];?>

		</div>
	</aside>

	<section class="order_submit_section1">
		<div class="order_submit_section1_div">
			<span class="float_left">预约费用</span>
			<span class="float_right">￥<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_price'];?>
元</span>
		</div>
		<div class="order_submit_section1_div">
			<span class="float_left">平台红包</span>
			<span class="float_right"><img src="<?php echo @IMG_URL;?>
/order_submit/Rightarrow@2x.png"></span>
			<span class="order_submit_section1_span1 float_right">暂无可用</span>
		</div>
		<div class="order_submit_section1_div">
			<span class="float_left">小店代金券</span>
			<span class="float_right"><img src="<?php echo @IMG_URL;?>
/order_submit/Rightarrow@2x.png"></span>
			<span class="order_submit_section1_span1 float_right">暂无可用</span>
		</div>
		<div class="order_submit_section1_div">
			<span class="order_submit_section1_span2">￥<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_price'];?>
元</span>
			<span class="order_submit_section1_span3">小计</span>
			<span class="order_submit_section1_span1 float_right">已优惠￥0元</span>
		</div>
	</section>

	<section class="order_submit_section2">
		<div class="order_submit_section1_div">
			<span class="float_left">支付方式</span>
			<span class="float_right">在线支付</span>
		</div>
		<div class="order_submit_section1_div">
			<span class="float_left">备注:&emsp;</span>
			<span class="order_submit_section1_span1 float_left">商品预估重量、需要哪些保护措施等备注要求</span>
		</div>
	</section>
	
	<footer class="order_submit_footer">
		<div class="order_submit_footer1">合计￥<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_price'];?>
元</div>
		<div><input type="button" class="order_submit_footer2" value="提交订单" id="order_submit_button" name="order_submit_button">提交订单</div>
	</footer>
	</form>

	<script type="text/javascript">
		$(function() {
			//提交订单按钮
			$("#order_submit_button").on("click", function() {
				$.post("<?php echo @__SELF__;?>
",
				{
				  order_number:"<?php echo $_smarty_tpl->tpl_vars['info']->value['order_number'];?>
",
				  order_goods_id:"<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_id'];?>
",
				  // order_book_user_id:"<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_id'];?>
",
				  order_name:"<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_title'];?>
",
				  order_price:"<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_price'];?>
",
				  // order_date:"<?php echo $_smarty_tpl->tpl_vars['info']->value['skill_id'];?>
",
				  order_mod_of_payment:"1"
				},
				function(data,status){
					console.log(data);
					// alert("数据：" + data + "\n状态：" + status);
					// alert("预约成功！");
					window.location.href="<?php echo @__MODULE__;?>
/Book/book_successful/order_number/<?php echo $_smarty_tpl->tpl_vars['info']->value['order_number'];?>
";//需要跳转的地址
				});
			});;

		});


	</script>
</body>
</html><?php }} ?>